package com.youlai.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "考试名单详情实体类")
@Data
public class ExamDetailVO {

    @Schema(description = "周期")
    private Integer period;

    @Schema(description = "等级数字形式")
    private Integer degree;

    @Schema(description = "等级字母形式")
    private String degreeStr;

    @Schema(description = "成绩数量")
    private Integer scoreCount;

    @Schema(description = "成绩列表")
    private String scoreList;

    @Schema(description = "成绩时间")
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastTime;

    @Schema(description = "成绩列表")
    List<ScorePageVO> children;
}
